<template>
  <div class="home">
    <router-view class="child-page"></router-view>
    <van-tabbar route>
      <van-tabbar-item to="/" icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/type" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item to="/cart" icon="shopping-cart-o">购物车</van-tabbar-item>
      <van-tabbar-item to="/profile" icon="user-o">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'Home'
}
</script>
<style lang="scss" scoped>
  .home {
    height: 100%;
    .child-page {
      height: calc(100% - 100px);
      overflow: auto;
      overflow-x: hidden;
    }
  }
</style>
